diff options
| author | Michael Williamson <mike@zwobble.org> | 2023-11-26 13:30:56 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2023-11-26 13:30:56 +0000 |
| commit | 52444b565aa3fa5719df3acf490eb11b9337511c (patch) | |
| tree | 03e266c423310eefa25c96ca8f9a457149eb521e /snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.binary.WasmBinaryFormatModulesTests]/[method:canSerializeModuleWithDataSegments(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected | |
| parent | 844ebd7422818d574a9438464d5eb03c0dbb32ca (diff) | |
Test WasmBinaryFormatModules directly
Diffstat (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.binary.WasmBinaryFormatModulesTests]/[method:canSerializeModuleWithDataSegments(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected')
1 files changed, 25 insertions, 0 deletions
diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.binary.WasmBinaryFormatModulesTests]/[method:canSerializeModuleWithDataSegments(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.binary.WasmBinaryFormatModulesTests]/[method:canSerializeModuleWithDataSegments(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected new file mode 100644 index 00000000..131f4676 --- /dev/null +++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.binary.WasmBinaryFormatModulesTests]/[method:canSerializeModuleWithDataSegments(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected @@ -0,0 +1,25 @@ + +module.wasm: file format wasm 0x1 + +Section Details: + +Memory[1]: + - memory[0] pages: initial=10 +Data[2]: + - segment[0] <.data> memory=0 size=4 - init i32=0 + - 0000000: 0102 0304 .... + - segment[1] <.rodata> memory=0 size=4 - init i32=4 + - 0000004: 0405 0607 .... +Custom: + - name: "linking" + - segment info [count=2] + - 0: .data p2align=2 [ ] + - 1: .rodata p2align=0 [ ] + - symbol table [count=3] + - 0: D <data1> segment=0 offset=0 size=2 [ binding=global vis=default ] + - 1: D <data2> segment=0 offset=2 size=2 [ binding=global vis=default ] + - 2: D <rodata1> segment=1 offset=0 size=4 [ binding=global vis=default ] +Custom: + - name: "name" + +Code Disassembly: |
